package com.hzlj.position.locate.controller;


import com.fz.common.base.dto.PageParamDTO;
import com.fz.common.base.dto.QueryPageResultDTO;
import com.fz.common.base.dto.ResultDTO;
import com.hzlj.position.locate.common.dto.abnGathering.AbnGatheringQueryParamDTO;
import com.hzlj.position.locate.common.dto.abnGathering.AbnGatheringQueryResultDTO;
import com.hzlj.position.locate.service.AbnGatheringService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 【定位分析-聚众告警表】接口
 *
 * @author lifh
 * @date 2023-03-28 10:20:20
 */
@Slf4j
@RestController
@RequestMapping("/position/abn/gathering")
public class AbnGatheringController {

    @Resource
    private AbnGatheringService abnGatheringService;


    /**
     * 分页查询 定位分析-聚众告警表
     *
     * @param dto          查询条件
     * @param pageParamDTO 分页信息
     * @return 对象列表
     */
    @GetMapping("/list/page")
    public ResultDTO<QueryPageResultDTO<AbnGatheringQueryResultDTO>> pageAbnGathering(AbnGatheringQueryParamDTO dto, PageParamDTO pageParamDTO) {
        log.info("【查询分页列表】信息定位分析-聚众告警表,AbnGatheringQueryParamDTO={},pageParamDTO={}", dto, pageParamDTO);
        return new ResultDTO<>(abnGatheringService.pageAbnGathering(dto, pageParamDTO));
    }

}

